package com.team.recruitment_management_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.team.recruitment_management_system.pojo.dto.auth.EmailAndCaptchaDto;
import com.team.recruitment_management_system.pojo.dto.user.AddUserInfoDto;
import com.team.recruitment_management_system.pojo.dto.user.ChangeEmailDto;
import com.team.recruitment_management_system.pojo.dto.user.ChangePwdDto;
import com.team.recruitment_management_system.pojo.entity.SysUser;
import com.team.recruitment_management_system.pojo.vo.UserInfoVo;
import com.team.recruitment_management_system.util.result.Result;

/**
* @author 86147
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2024-03-21 20:28:40
*/
public interface SysUserService extends IService<SysUser> {
    Result<Void> addUserInfo(AddUserInfoDto addUserInfoDto, String token);

    Result<Void> changePassword(ChangePwdDto changePwdDto, String token);

    Result<Void> bindingEmail(EmailAndCaptchaDto emailAndCaptchaDto,String token);

    Result<Void> verifyOldEmail(EmailAndCaptchaDto emailAndCaptchaDto,String token);

    Result<Void> changeEmail(ChangeEmailDto changeEmailDto, String token);

    Result<Void> changePhone(String newPhone,String token);

    Result<Void> changeAvatar(String newAvatar,String token);

    Result<Void> cancelAccount(String token);

    Result<UserInfoVo> getUserInfo(String token);

}
